package com.seari.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.seari.mapper.FlowLinkMapper;
import com.seari.pojo.FlowMajor;
import com.seari.pojo.RepairPlanData;
import com.seari.service.FlowLinkService;

@Service
public class FlowLinkServiceImpl implements FlowLinkService {
	
	@Autowired
	private FlowLinkMapper flowLinkMapper;

	@Override
	public int addFlowLinkList(List<FlowMajor> fmList) {
		// TODO Auto-generated method stub
		return flowLinkMapper.addFlowLinkList(fmList);
	}

	@Override
	public String queryFlowByfidAndFlid(String faultId, String flowLinkId) {
		// TODO Auto-generated method stub
		return flowLinkMapper.queryFlowByfidAndFlid(faultId,flowLinkId);
	}

	@Override
	public String queryFaultContent(String faultId) {
		// TODO Auto-generated method stub
		return flowLinkMapper.queryFaultContent(faultId);
	}

	@Override
	public Integer deleteFlowByFlowLinkId(String faultId ,String majorId) {
		// TODO Auto-generated method stub
		return flowLinkMapper.deleteFlowByFlowLinkId(faultId,majorId);
	}

	@Override
	public Integer addRepairPlan(RepairPlanData rpd) {
		// TODO Auto-generated method stub
		return flowLinkMapper.addRepairPlan(rpd);
	}

	@Override
	public String queryRepairPlan(String faultId,String tag, String flowLinkId) {
		// TODO Auto-generated method stub
		return flowLinkMapper.queryRepairPlan(faultId,tag,flowLinkId);
	}

	@Override
	public void deleteRepairPlanByFlowLinkId(String faultId, String tag,String flowLinkId) {
		// TODO Auto-generated method stub
		flowLinkMapper.deleteRepairPlanByFlowLinkId(faultId,tag,flowLinkId);
	}

	@Override
	public int updateRepairPlan(RepairPlanData rpd) {
		// TODO Auto-generated method stub
		return flowLinkMapper.updateRepairPlan(rpd);
	}

	@Override
	public void deleteBranchFlowByFaultLinkId(String faultId, String majorId) {
		// TODO Auto-generated method stub
		flowLinkMapper.deleteBranchFlowByFaultLinkId(faultId,majorId);
	}

	@Override
	public int addFlowMajor(FlowMajor fm) {
		// TODO Auto-generated method stub
		return flowLinkMapper.addFlowMajor(fm);
	}

}
